package com.mentaleye.dal.model;

import com.mentaleye.bean.PayBean;
import com.mentaleye.enumpackage.TradeStatusEnum;
import com.mentaleye.enumpackage.TradeTypeEnum;

import java.util.Date;

public class TrxRecord {
    private String trxNo;

    private String trxType;

    private String trxStatus;

    private String parentTrxNo;

    private String trxOrderNo;

    private Date createTime;

    private Date updateTime;

    private String returnUrl;

    private String notifyUrl;

    private String productCode;

    public TrxRecord() {
    }

    public TrxRecord(PayBean payBean) {
        this.trxNo = payBean.getOutTradeNo();
        this.trxType = TradeTypeEnum.PAY.name();
        this.trxStatus = TradeStatusEnum.CREATED.name();
        this.trxOrderNo = payBean.getOrderNo();
        this.returnUrl = payBean.getReturnUrl();
        this.notifyUrl = payBean.getNotifyUrl();
        this.productCode = payBean.getProductCode();

    }

    public String getTrxNo() {
        return trxNo;
    }

    public void setTrxNo(String trxNo) {
        this.trxNo = trxNo;
    }

    public String getTrxType() {
        return trxType;
    }

    public void setTrxType(String trxType) {
        this.trxType = trxType;
    }

    public String getTrxStatus() {
        return trxStatus;
    }

    public void setTrxStatus(String trxStatus) {
        this.trxStatus = trxStatus;
    }

    public String getParentTrxNo() {
        return parentTrxNo;
    }

    public void setParentTrxNo(String parentTrxNo) {
        this.parentTrxNo = parentTrxNo;
    }

    public String getTrxOrderNo() {
        return trxOrderNo;
    }

    public void setTrxOrderNo(String trxOrderNo) {
        this.trxOrderNo = trxOrderNo;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getReturnUrl() {
        return returnUrl;
    }

    public void setReturnUrl(String returnUrl) {
        this.returnUrl = returnUrl;
    }

    public String getNotifyUrl() {
        return notifyUrl;
    }

    public void setNotifyUrl(String notifyUrl) {
        this.notifyUrl = notifyUrl;
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }


}